//
//  GalleryHotColumnList.m
//  ArtDog
//
//  Created by dllo on 16/9/10.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "GalleryHotColumnList.h"
#import "ReadMainModel.h"

@implementation GalleryHotColumnList

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        _idField = value;
    }
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"topics"]) {
        NSMutableArray<ReadMainModel *> *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ReadMainModel *topicModel = [ReadMainModel modelWithDic:dic];
            [array addObject:topicModel];
        }
        _topics = array;
    }
}



@end
